<?php
/**
 * @file tags.php
 * @author CaoQiCheng
 * @date 2017年2月8日 下午17:05:11
 * @brief 
 */
namespace haibao\jiepai\business;

use haibao\jiepai\data\Covers as CoversData;


class Covers extends \haibao\jiepai\business\Base{	
	
	public static function getOneCover($filter){
		$data = new CoversData();
		return $data->getOne($filter);
	}
	
	public static function getOneById($id){
		$data = new CoversData();
		return $data->getOneById($id);
	}
	
	public static function saveTitle($model){
		$data = new CoversData();
		return $data->save($model);
	}
	
	public static function insertTitle($model){
		
		$model->CreateTime = new \DateTime();
		$data = new CoversData();
		return $data->add($model);
	}
	
}